package com.cole.miniapp.project.service;

import com.cole.miniapp.project.domain.*;
import com.cole.miniapp.project.domain.vo.FcmBusinessVO;
import com.cole.miniapp.project.domain.vo.FcmStoreVO;

import java.math.BigDecimal;
import java.util.List;

/**
 * Create tao on 2019/5/17
 */

public interface StoreService {

    List<FcmStoreVO> getStoreList(int page, String search);

    List<FcmStore> storeEntrance(long userId, int page);

    boolean setFractionProportion(FcmBusiness fcmBusiness, BigDecimal proportion);

    int addStaff(FcmBusiness fcmBusiness, Long storeUserId, String name, String phone,  Byte type);

    Integer deleteStaff(FcmBusiness fcmBusiness, Long storeUserId);

    FcmStore getStoreInfo(FcmBusiness fcmBusiness);

    List<FcmUserFraction> getFractionList(FcmBusiness fcmBusiness,int page);

    List<FcmUserConsumption> getConsumpitionList(FcmBusiness fcmBusiness,int page);

    FcmStoreVO userGetStoreInfo(Long storeId);

    List<FcmUserRecharges> getStoreRechargesList(FcmBusiness fcmBusiness, int page);

    List<FcmBusinessVO> getStoreUserList(FcmBusiness fcmBusiness, int page);

    FcmBusinessVO getStoreUserInfo(FcmBusiness fcmBusiness, Long storeUserId);

    boolean setStoreOpenOrClose(FcmBusiness fcmBusiness);

    int setStoreIdentity(FcmBusiness fcmBusiness, Long storeUserId, Byte type);

    BigDecimal getFractionProportion(FcmBusiness fcmBusiness);

}
